# -*- coding: utf-8 -*-

import requests

url = 'http://www.baidu.com'

def main(proxy, url=url):
    proxies = {
        'http': proxy,
        'https': proxy,
    }
    ret = requests.get(url, proxies=proxies, timeout=2)
    return ret
